//
//  Helper.h
//  IndonesiaBilingual
//
//  Created by ysx on 2023/12/8.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
//计算存储空间
#include <sys/param.h>
#include <sys/mount.h>

//计算内存大小
#import <mach/mach.h>
#import <mach/mach_host.h>
NS_ASSUME_NONNULL_BEGIN

@interface Helper : NSObject
+ (NSString *)getTotalMemorySize;
+ (NSString *)getAvailableMemorySize;
+ (NSString *)getTotalDiskSize;
+ (NSString *)getAvailableDiskSize;

+ (NSString *)getNewFreeSize;//可用磁盘内存用这个
+ (NSString *)getDeviceIPAddresses;
//压缩图片指定大小
+ (UIImage *)compressImage:(UIImage *)image toByte:(NSUInteger)maxLength;

@end

NS_ASSUME_NONNULL_END
